﻿package Common 
{
	import flash.events.EventDispatcher;
	
	/**
	 * ...
	 * @author fox
	 */
	public class GameState extends EventDispatcher
	{
		public static const LOGO:String = "Logo";
		public static const LOGIN:String = "Login";
		public static const MAIN:String = "Main";
		
		private var type:String = "";
		
		public function get Type():String
		{
			return type;
		}
		
		public function set Type( type:String ):void
		{
			this.type = type;
		}
		
		public function GameState() 
		{
		}
		
		public function update():void
		{
			// update
		}
	
		public function run():void
		{
			// game logic run
		}
		
		public function release():void
		{
			
		}
		
		public function init():void
		{
		}
		
	}
	
}